<page-header>
</page-header>
<nz-spin [nzSpinning]="loading">
  <div class="main" *ngIf="setting">
    <div class="left">
      <form nz-form nzLayout="vertical" class="setting-form" #f="ngForm" (submit)="save()" se-container="1">
        <se label="考勤是否提醒">
          <nz-switch [(ngModel)]="setting.isCheck" name="isCheck" nzCheckedChildren="开" nzUnCheckedChildren="关"></nz-switch>
        </se>
        <se label="提醒日期">
          <nz-select [(ngModel)]="setting.checkDay" name="checkDay">
            <nz-option *ngFor="let val of days" nzLabel="{{val}}" nzValue="{{val}}"></nz-option>
          </nz-select>
        </se>
        <se label="工资发放是否提醒">
          <nz-switch [(ngModel)]="setting.isSalary" name="isSalary" nzCheckedChildren="开" nzUnCheckedChildren="关"></nz-switch>
        </se>
        <se label="提醒日期">
          <nz-select [(ngModel)]="setting.salaryDay" name="salaryDay">
            <nz-option *ngFor="let val of days" nzLabel="{{val}}" nzValue="{{val}}"></nz-option>
          </nz-select>
        </se>
        <se label="员工合同到期提醒">
          <nz-switch [(ngModel)]="setting.isContract" name="isContract" nzCheckedChildren="开" nzUnCheckedChildren="关"></nz-switch>
        </se>
        <se label="员工试用期到期提醒">
          <nz-switch [(ngModel)]="setting.isProbation" name="isProbation" nzCheckedChildren="开" nzUnCheckedChildren="关"></nz-switch>
        </se>
        <se label="员工生日提醒">
          <nz-switch [(ngModel)]="setting.staffBirthday" name="staffBirthday" nzCheckedChildren="开" nzUnCheckedChildren="关"></nz-switch>
        </se>
        <se label="公司成立周年提醒">
          <nz-switch [(ngModel)]="setting.companyBirthday" name="companyBirthday" nzCheckedChildren="开" nzUnCheckedChildren="关"></nz-switch>
        </se>
        <se>
          <button nz-button nzType="primary" [disabled]="f.invalid">提交</button>
        </se>
      </form>
    </div>
  </div>
</nz-spin>
